
#ifndef __NEW_RSA_KEYPAIR_H
#define __NEW_RSA_KEYPAIR_H

#include "RSAPublicKey.h"
#include "RSAPrivateKey.h"

// Shoud be RSAKeyPairGenerator

class NewRSAKeyPair
{
   public:
      NewRSAKeyPair(int nbits, const char *name);
      int CheckAreKeyPair();
      static int CheckAreKeyPair(RSAPublicKey *ipub, RSAPrivateKey *iprv);
      RSAPublicKey *pub;
      RSAPrivateKey *prv;
   private:
      int GenerateKeyPair(int nbits, const char *name);
};

#endif
